package com.jiawa.wiki.req;

import javax.validation.constraints.NotBlank;

public class EbookSaveRep {
        private Long id;
        @NotBlank(message = "【书名】不能为空")

        private String name;

        private Long category1Id;

        private Long category2Id;

        private String description;

        private String cover;

        private Integer docCount;

        private Integer viewCount;

        private Integer voteCount;

        public Long getId() {
            return id;
        }

        public void setId(Long id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Long getCategory1Id() {
            return category1Id;
        }

        public void setCategory1Id(Long category1Id) {
            this.category1Id = category1Id;
        }

        public Long getCategory2Id() {
            return category2Id;
        }

        public void setCategory2Id(Long category2Id) {
            this.category2Id = category2Id;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public Integer getDocCount() {
            return docCount;
        }

        public void setDocCount(Integer docCount) {
            this.docCount = docCount;
        }

        public Integer getViewCount() {
            return viewCount;
        }

        public void setViewCount(Integer viewCount) {
            this.viewCount = viewCount;
        }

        public Integer getVoteCount() {
            return voteCount;
        }

        public void setVoteCount(Integer voteCount) {
            this.voteCount = voteCount;
        }

        @Override
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append(getClass().getSimpleName());
            sb.append(" [");
            sb.append("Hash = ").append(hashCode());
            sb.append(", id=").append(id);
            sb.append(", name=").append(name);
            sb.append(", category1Id=").append(category1Id);
            sb.append(", category2Id=").append(category2Id);
            sb.append(", description=").append(description);
            sb.append(", cover=").append(cover);
            sb.append(", docCount=").append(docCount);
            sb.append(", viewCount=").append(viewCount);
            sb.append(", voteCount=").append(voteCount);
            sb.append("]");
            return sb.toString();
        }
    }
